package org.ghost.quickstart.scalac.collection

import org.ghost.quickstart.scalac.traits.BaseTrait

object TupleLoop extends BaseTrait {
  override def print(): Unit = {
    val tp2 = ("A", 1)
    val tp3 = Tuple3("A", 1, 100)
    val tp4 = ("A", 1, 100, "Hello World")

    //productIterator.foreach迭代
    println("*****productIterator.foreach迭代:")
    tp4.productIterator.foreach { i => println("val = " + i) }
  }
}
